package com.tib.mock;

import java.util.ArrayList;
import java.util.List;

import com.tib.module.Category;
import com.tib.module.Country;
import com.tib.module.Item;
import com.tib.module.Region;
import com.tib.module.State;

public class MockModuleProvider {

	static List<Region> regions = new ArrayList<Region>();
	static List<Category> categories = new ArrayList<Category>();
	static List<Item> items = new ArrayList<Item>();
	static List<State> usStates = new ArrayList<State>();
	static List<State> canadaStates = new ArrayList<State>();
	static List<State> indianStates = new ArrayList<State>();
	static List<Country> countries = new ArrayList<Country>();

	static{
		items.add(new Item("activities"));
		items.add(new Item("accounting"));
		items.add(new Item("appliances"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));
		items.add(new Item("item2"));

		categories.add(new Category("community", items));
		categories.add(new Category("housing", items));
		categories.add(new Category("jobs", items));
		categories.add(new Category("personals", items));
		categories.add(new Category("for sale", items));
		categories.add(new Category("services", items));
		categories.add(new Category("discussion forums", items));

		regions.add(new Region("albany", categories));
		regions.add(new Region("queens", categories));
		regions.add(new Region("astoria", categories));
		regions.add(new Region("brooklyn", categories));
		regions.add(new Region("manhattan", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));
		regions.add(new Region("albany", categories));

		usStates.add(new State("New York", regions));
		usStates.add(new State("Colorado", regions));
		usStates.add(new State("California", regions));
		usStates.add(new State("Wyoming", regions));
		usStates.add(new State("Minnesotta", regions));
		usStates.add(new State("Oregon", regions));
		usStates.add(new State("Colorado", regions));
		usStates.add(new State("Colorado", regions));
		usStates.add(new State("Colorado", regions));


		canadaStates.add(new State("New York", regions));
		canadaStates.add(new State("Colorado", regions));
		canadaStates.add(new State("California", regions));
		canadaStates.add(new State("Wyoming", regions));
		canadaStates.add(new State("Minnesotta", regions));
		canadaStates.add(new State("Oregon", regions));
		canadaStates.add(new State("Colorado", regions));
		canadaStates.add(new State("Colorado", regions));
		canadaStates.add(new State("Colorado", regions));


		indianStates.add(new State("Himachal Pradesh", regions));
		indianStates.add(new State("Punjab", regions));
		indianStates.add(new State("Delhi", regions));
		indianStates.add(new State("Madya Pradesh", regions));
		indianStates.add(new State("Maharashtra", regions));
		indianStates.add(new State("Andra Pradesh", regions));
		indianStates.add(new State("Kerala", regions));
		indianStates.add(new State("Tamil Nadu", regions));
		indianStates.add(new State("Gujurat", regions));
		indianStates.add(new State("Sikkim", regions));

		countries.add(new Country("USA",usStates));
		countries.add(new Country("Canada",canadaStates));
		countries.add(new Country("India",indianStates));
		countries.add(new Country("Australia",usStates));
		countries.add(new Country("Switzerland",usStates));		

	}


	public static List<Country> getCountries(){	
		return countries;		
	}
	
	
	public static Region getRegion(){	
		return regions.get(0);		
	}

}
